//
//  BaseViewController.h
//  BuSuanZi
//
//  Created by HZ on 2025/2/15.
//

#import <UIKit/UIKit.h>
#import "BSZNavigationBar.h"

NS_ASSUME_NONNULL_BEGIN

@interface BSZBaseViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>

//自定义顶部导航栏
@property (nonatomic, strong) BSZNavigationBar *zdyNavBar;
//展示内容视图层
@property (nonatomic, strong) UIView *containerView;

@property (nonatomic, assign) BOOL isHasDataBool;

@property (nonatomic, strong) UIButton *leftItemButton;
@property (nonatomic, strong) NSMutableArray *dataArry;
@property (nonatomic, strong) UITableView *dataTableView;

@property (nonatomic, assign) NSInteger currentPage;
@property (nonatomic, assign) NSInteger pageSize;

@property (nonatomic, strong) MJRefreshGifHeader *header;
//@property (nonatomic, strong) MJRefreshNormalHeader *header;
//@property (nonatomic, strong) MJRefreshAutoNormalFooter *footer;
//@property (nonatomic, strong) MJRefreshBackNormalFooter *footer;
@property (nonatomic, strong) MJRefreshAutoFooter *footer;

#pragma mark --添加下拉刷新
- (void)addNormalHeaderRefresh:(UIScrollView *)tableView;
//- (void)addGifRefresh:(UITableView *)tableView;
#pragma mark --添加上拉更多
- (void)addNormalFooterRefresh:(UIScrollView *)tableView;
//- (void)addNomalRefresh:(UITableView *)tableView;
#pragma mark --开始刷新
- (void)begainRefresh;
#pragma mark --结束刷新
- (void)endRefresh;

#pragma mark --加载刷新数据
- (void)headerRefreshAction;
#pragma mark --加载上拉数据
- (void)footerRefreshAction;

#pragma mark --获取登录成功通知
- (void)loginSuccessNoty:(NSNotification *)noty;
#pragma mark --提示
- (void)alertTitle:(NSDictionary *)dictionary leftHandler:(void(^)(void))leftHandler rightHandler:(void(^)(void))rightHandler;

//返回
- (void)runBack;
- (void)alpaNavBar;

@end

NS_ASSUME_NONNULL_END
